﻿using CatUtils.Utils.Currency.IoUtils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LineStickerDwonload.Linehelper.ApngTool
{
    public partial class ApngTool : Form
    {
        public ApngTool()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ApngToGif.Convert(FileHelper.SelectFile());
        }

        private void button2_Click(object sender, EventArgs e)
        {
            foreach (var item in FloderNameHelper.GetFullFileNameList(FloderHelper.SelectFloder(), "*.apng"))
            {
                ApngToGif.Convert(item, FileNameHelper.CreateFileNameWithExtension(
                    FileNameHelper.CreateFileNameWithChildFloder(item, "Apng 转换为 GIF"), ".gif"
                    ));
            }
        }
    }
}